package com.project.shortlink.util;


public class ShortLinkThreadLocal {

    private static ThreadLocal<Long> employeeThread = new ThreadLocal<>();

    public static void set(Long employeeId){

        employeeThread.set(employeeId);
    }

    public static Long get(){

        return employeeThread.get();
    }

    //防止内存泄漏
    public static void remove(){

        employeeThread.remove();
    }

}